package bishi.kaizi;

import java.util.Scanner;

/**
 * @author: Tangxz
 * @email: 1171702529@qq.com
 * @cate: 2022/03/19 19:46
 */
public class _12 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        boolean G = true;
        int jian = n%(k+1);
        if (jian==0){
            System.out.println("T win");
        }else {
            System.out.println("G win");
        }
    }
}
